package com.jmp.api.crm.dto;

import lombok.Builder;
import lombok.Data;
import one.stand.dto.PageResponse2;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author cjr
 */
@Data
@Builder
public class CompanySelectGoodsResponse {
    private PageResponse2<Goods> goodsList;

    @Data
    @Builder
    public static class Goods {
        private Integer goodsId;
        private String goodsName;
        private String goodsTypeName;
        private BigDecimal price;
        private Integer goodsNum;
        private Integer dealNum;
        private Date createTime;
        /**
         * 是否显示：0 不显示 1显示
         */
        private Integer showStatus;

        private Integer showPrice;
        private Integer isPayment;
        private List<Spec> specList;
    }

    @Data
    @Builder
    public static class Spec {
        private Integer specId;
        private String specName;
        private BigDecimal priceBatch;
        private Integer price;
        private BigDecimal priceRemark;
    }
}
